package com.alignet.gn.hibernate;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import javax.persistence.Transient;

/**
 * AbstractTgnConfigpassword entity provides the base persistence definition of
 * the TgnConfigpassword entity. @author MyEclipse Persistence Tools
 */
@MappedSuperclass
public abstract class AbstractTgnConfigpassword implements java.io.Serializable {

    // Fields

    private Integer inIdconfigpassword;
    private String vcExpiry;
    private String vcAttempt;
    private String vcDifferent;
    private int inAttempt;

    // Constructors



    /** default constructor */
    public AbstractTgnConfigpassword() {
    }
    @Transient
    public int getInAttempt() {
		return Integer.valueOf(getVcAttempt()).intValue();
	}

	/** minimal constructor */
    public AbstractTgnConfigpassword(Integer inIdconfigpassword) {
	this.inIdconfigpassword = inIdconfigpassword;
    }

    /** full constructor */
    public AbstractTgnConfigpassword(Integer inIdconfigpassword,
	    String vcExpiry, String vcAttempt, String vcDifferent) {
	this.inIdconfigpassword = inIdconfigpassword;
	this.vcExpiry = vcExpiry;
	this.vcAttempt = vcAttempt;
	this.vcDifferent = vcDifferent;
    }

    // Property accessors
    @Id
    @Column(name = "IN_IDCONFIGPASSWORD", unique = true, nullable = false)
    public Integer getInIdconfigpassword() {
	return this.inIdconfigpassword;
    }

    public void setInIdconfigpassword(Integer inIdconfigpassword) {
	this.inIdconfigpassword = inIdconfigpassword;
    }

    @Column(name = "VC_EXPIRY", length = 2)
    public String getVcExpiry() {
	return this.vcExpiry;
    }

    public void setVcExpiry(String vcExpiry) {
	this.vcExpiry = vcExpiry;
    }

    @Column(name = "VC_ATTEMPT", length = 2)
    public String getVcAttempt() {
	return this.vcAttempt;
    }

    public void setVcAttempt(String vcAttempt) {
	this.vcAttempt = vcAttempt;
    }

    @Column(name = "VC_DIFFERENT", length = 2)
    public String getVcDifferent() {
	return this.vcDifferent;
    }

    public void setVcDifferent(String vcDifferent) {
	this.vcDifferent = vcDifferent;
    }

}